def create_object(info_instance, data, serializer_class):
    validate_data = {'info': info_instance, 'owner': info_instance.owner}
    validate_data.update(data if data else dict())

    if not data:
        data = dict()

    instance_serializer = serializer_class(data=data)
    instance_serializer.is_valid(raise_exception=True)
    instance_serializer.save(**validate_data)
